﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity.Framework;
using System.Data.Objects;

namespace Business.Operations
{
    public class ErrorLogOperation
    {
        private static HPDMASEntities db = new HPDMASEntities();

        public ErrorLogOperation()
        {

        }

        static List<ErrorLog> ErrorLogGetAll()
        {
            var errorLogListesi = db.ErrorLog.ToList();
            return errorLogListesi;
        }

        public static void ErrorLogInsert(ErrorLog errorLog)
        {
            db.ErrorLog.AddObject(errorLog);
            //TODO db.savechanges kaldırıldı.
        }
    }
}
